<template>
  <div class="talkList" v-for="item in data" :key="item.id">
    <div class="talk_header">
      <div class="talk_user">
        <div class="talk_photo">
          <img :src="item.img" alt="">
        </div>
        <div class="user_msg">
          <span>{{item.name}}</span>
          <i>今天 {{item.time}}</i>
        </div>
      </div>
      <span class="iconfont icon-gengduo ico"></span>
    </div>
    <i>{{item.writer}}</i>
    <div class="phone">
      <span class="iconfont icon-shouji ico">{{item.phone}}</span>
    </div>

    <div class="feature hhh">
      <span class="pv">浏览{{item.pv}}次</span>
      <div class="feIco">
        <span class="iconfont icon-dianzan"></span>
        <span class="iconfont icon-pinglun"></span>
        <span class="iconfont icon-zhuanfa"></span>
      </div>
    </div>

    <div class="like">
      <i class="iconfont icon-dianzan1">成龙、刘华强等26人觉得很赞</i>
    </div>

    <input type="text" placeholder="评论">
  </div>
</template>

<script setup>
  import { useStore } from 'vuex';
  import {ref} from 'vue'

  const store = useStore()
  const data = ref([])
  data.value = store.state.friendData

</script>

<style scoped>
.talkList {
  width: 375px;
  /* height: 200px; */
  padding: 15px 15px 10px 10px;
  box-sizing: border-box;
  border-bottom: 10px solid rgb(236, 239, 239);
}

.talkList .ico {
  font-size: 20px;
}

.talk_header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.talk_user {
  display: flex;
  justify-content: space-between;
}

.talk_user .user_msg {
  display: flex;
  flex-direction: column;
  margin-left: 10px;
}

.talk_user .user_msg i {
  margin-top: 3px;
  font-size: 9px;
}

.talk_photo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
}

.talk_photo img {
  width: 100%;
  height: 100%;
}


.talkList .phone {
  margin-top: 1px;
}

.talkList .phone .ico {
  font-size: 8px;
}
/* hhh */
.feature {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.feature .pv {
  font-size: 9px;
}

.feature .feIco {
  display: flex;
  justify-content: space-between;
  width: 100px;
}

.feature .feIco span {
  font-size: 17px;
}

.like {
  width: 355px;
  height: 30px;
  border-bottom: 1px solid #ccc;
}

.like i {
  font-size: 10px;
  line-height: 30px;
}

input {
  width: 345px;
  height: 20px;
  border: 0;
  outline: nones;
  padding-left: 10px;
  background-color: rgb(236, 239, 239);
}
</style>